Skip to content

Conversation

ulasaydin
Copy link
Contributor

I added a problem named "Reverse Linked List" with its solution to LinkedList section. It basically takes a LinkedList as parameter, then returns the same modified LinkedList but its elements are in reverse order.

Copy link
Member

@ashokdey ashokdey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @ulasaydin, please make the requested changes! Thanks.

Comment on lines 2 to 4
var next = linkedList.getFirst();
var current = null;
var prev;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we use let here, instead of var?

'var's are replaced with 'let's.
@ulasaydin
Copy link
Contributor Author

I replaced them, thanks for attention.

Copy link
Member

@ashokdey ashokdey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants